package com.cby.ssm.service;

import com.cby.ssm.entity.RoleEntity;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by 13296 on 2017/7/20.
 */
public interface RoleService {
    List<RoleEntity> searchAllRole() throws Exception;
    RoleEntity searchRole(String roleId) throws Exception;
    List<RoleEntity> searchRoles(String key) throws Exception;
    @Transactional
    RoleEntity editRole(RoleEntity r) throws Exception;
    boolean deleteRole(String deleteId,String notDeleteId) throws Exception;
    @Transactional
    void addRole(String roleName)throws Exception;
}
